using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace UserNode.Effects
{
    class Gradatiom : Effect
    {
        Brush m_brush = new SolidBrush(Color.Red);
        int m_color = 0;

        public bool Update(DateTime now)
        {
            m_color += 0x10101010;
            m_brush = new SolidBrush(Color.FromArgb(255, Color.FromArgb(m_color)));
            return true;
        }

        public void Draw(Graphics g, Rectangle rect)
        {
            g.FillRectangle(m_brush, rect);
        }
    }
}
